<template>
  <div>
    <h4>a组件 <el-button type="primary" @click="add">增加</el-button></h4>
    {{ $store.state.count }}
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    add() {
      this.$store.commit("changeAccount", {
        number: 10
      })
    }
  }
}
</script>

<style></style>
